import request from '@/utils/request'
// 商品分类
const proClass = (data: any) => {
  return request({
    url: '/product-class/allList',
    type: 'get',
    data
  })
}

//商品列表
const productlist = (data: any) => {
  return request({
    url: '/product/list',
    type: 'get',
    data
  })
}
//商品详情
const proInfo = (data: any) => {
  return request({
    url: '/product/details',
    type: 'get',
    data
  })
}
export { proClass, productlist, proInfo }
